import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/home/Home.vue'
import Stone from '../components/stone/Stone.vue'
import ActiveStone from '../components/stone/ActiveStone.vue'
import StonePanel from '../components/stone/StonePanel.vue'
import StoneAdd from '../components/stone/StoneAdd.vue'
Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '/',
      name: 'Home',
      meta: {
        title: '集合石--首页'
      },
      components: {
        default: Home
      }
    },
    {
      path: '/stone',
      name: 'Stone',
      meta: {
        title: '召唤'
      },
      components: {
        default: Stone,
        stone_panel: StonePanel
      },
      children: [
        {
          path: 'active',
          component: ActiveStone
        },
        {
          path: 'stone_create',
          meta: {
            title: '集合石--召唤'
          },
          component: StoneAdd
        }
      ]
    }
  ]
})
